using System.Collections;
using System.Collections.Generic;
using PureStateMachine;
using UnityEngine;

// Choose hero
public class TSStart : PState
{
    public TSStart(PStateBrain brain) : base(brain)
    {
    }

    public override string Name => "Start";

    private bool ifStart;

    public override void StateInit()
    {
        ;
    }

    public override void StateStart()
    {
        if (ifStart)
            return;
        ifStart = true;
        LevelManager.instance.level = 0;    // 1.重置关卡

        CardManager.instance.InitPlayerDeckOnGameStart();   // 2.载入玩家初始卡组
        // 3.选择英雄
        // 4.选择完毕进入place阶段   
        TransferTo("Place");
        //Debug.Log("##########");
    }

    public override void StateUpdate()
    {
    }

    public override void StateEnd()
    {
        ;
    }
}
